package com.augmentum.oes.exception;

public class ServiceException extends Exception {

    private static final long serialVersionUID = -8063960611811622798L;

    private int code;
    private String errorMessage;

    public ServiceException(String errorMessage) {
        super();
        this.errorMessage = errorMessage;
    }

    public ServiceException(int code, String errorMessage) {
        super();
        this.code = code;
        this.errorMessage = errorMessage;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

}
